package example1;

/**
 * <h3>designPattern</h3>
 * <p>ConcreteBuilder：具体建造者</p>
 * @author : zhang.bw
 * @date : 2021-02-25 16:00
 **/
public class ConcreteBuilder extends  Builder {

	/**
	 * 产品是电脑
	 */
	Computer computer = new Computer();

	@Override
	public void buildCPU() {
		computer.Add("装CPU");
	}

	@Override
	public void buildMainBoard() {
		computer.Add("装主板");
	}

	@Override
	public void buildHD() {
		computer.Add("装硬盘");
	}

	@Override
	public Computer getComputer() {
		return computer;
	}
}
